/*
 * @Date: 2021-11-30 15:42:07
 * @LastEditors: Please set LastEditors
 * @Desc:
 * @LastEditTime: 2023-11-28 16:47:46
 * @FilePath: \web\src\route\all-routes.js
 */
/// 基础路由
import Layout from "@/layout/index";
export default [
  {
    path: "/",
    component: () => import("@/views/base/index.vue"),
    meta: {
      title: "首页"
    },
    hidden: 0
  },
  {
    path: "/login",
    component: () => import("@/views/base/login.vue"),
    meta: {
      title: "TMES-Login"
    },
    hidden: 0
  },
  {
    path: '/data',
    component: Layout,
    redirect: '/data/list',
    children: [
      //数据列表
      {
        path: 'list',
        component: () => import("@/views/data/list.vue"),
        redirect:'/data/list/option1',
        children:[
          {
            path:"option1",
            component:()=>import("@/views/data/list/option1.vue")
          },{
            path:"option2",
            component:()=>import("@/views/data/list/option2.vue")
          }
        ]
      }, {
        path: 'basicConfig',
        component: () => import("@/views/basicConfig/index.vue"),
        children:[  
          {
            path:"main",
            component:()=>import("@/views/basicConfig/module/user/main/index.vue")
          },{
            path:"permissions",
            component:()=>import("@/views/basicConfig/module/user/permissions/index.vue")
          },{
            path:"role",
            component:()=>import("@/views/basicConfig/module/user/role/index.vue")
          }
        ]
      }, {
        path: 'kanbanConfig',
        component: () => import("@/views/kanbanConfig/index.vue")
      }
    ]
  },
];
